# include<pthread.h>
# include "myls.c"


int main(int argc , char* argv[])
{
    char  * buf_dir = malloc(256);//缓冲区：存放当前目录
    char  * current_dir ;//当前目录指针
    //获取当前路径
    current_dir=getcwd(buf_dir,256);

    pthread_t tid;
    three_para * paras;
    paras->para1 ="-al";//指定myls模式
    paras->para2 = current_dir;
    paras->para3 = current_dir;
    pthread_create(&tid,NULL,(void *) myls,paras);
    pthread_join(tid,NULL);

    return 0;
}